package com.t235.gc.order.controller;

import com.t235.gc.dao.UsersDao;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api
@RestController
public class DemoController {
    @Resource
    private UsersDao usersMapper;

    @GetMapping("/hello")
    public String hello() {
        return "hello world " + usersMapper.queryById(1201581319114785L).getNickname();
    }
}
